package com.lge.clock.alarmclock.adapter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author LGE Cappuccino
 */
public class CityInfo implements Parcelable{
	private String cityName = null;
	private String state = null;
	private String location = null;
	
	public static final Parcelable.Creator<CityInfo> CREATOR = new Parcelable.Creator<CityInfo>() {

		//@Override
		public CityInfo createFromParcel(Parcel source) {
			return new CityInfo(source);
		}

		//@Override
		public CityInfo[] newArray(int size) {
			return new CityInfo[size];
		}
	};
	public CityInfo() {
		
	}
	public CityInfo(Parcel source) {
		readFromParcel(source);
	}
	//@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	//@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(cityName);
		dest.writeString(state);
		dest.writeString(location);
	}
	public final void readFromParcel(Parcel source){
		cityName = source.readString();
		state = source.readString();
		location = source.readString();
		
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
}